﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NQQOpenApi
{
    /// <summary>
    /// 封装QQ授权服务器返回的错误信息
    /// </summary>
    [Serializable]
    public class ErrorMessage
    {
        /// <summary>
        /// 错误编码,0:成功,-1:意外错误,其他对应API文档错误号
        /// </summary>
        [JsonProperty(PropertyName = "error")]
        public string ErrorCode { get; set; }

        /// <summary>
        /// 错误描述
        /// </summary>
        [JsonProperty(PropertyName = "error_description")]
        public string ErrorDescription { get; set; }
    }
}
